package com.wangjiang;

import com.wangjiang.common.map.BaseMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;
// import org.mybatis.spring.annotation.MapperScan;
// 这里的mapperScan  要用tk的包，用org的包会报下面的错误
// java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>()

@SpringBootApplication
@MapperScan(basePackages = "com.wangjiang.dao", markerInterface = BaseMapper.class)  // 扫描包要使用tk包里边的MapperScan
@org.mybatis.spring.annotation.MapperScan(basePackages = "com.wangjiang.mapper") //原生的mybatis包需要使用自带的包扫描dao
public class SpringBootMybatisDemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootMybatisDemoApplication.class, args);
    }
}
